package com.cmbchina.service;

import com.cmbchina.entity.Currency;
import com.cmbchina.entity.ExchangeRate;

import java.math.BigDecimal;

public class ExchangeRateService {

    public ExchangeRate getRate(Currency from, Currency to){
        //从某个地方获取汇率
        return  new ExchangeRate(new BigDecimal("0.14"), from, to);
    }
}
